package com.gcxy.shop.common;

public class CommonException extends RuntimeException {

	
	private static final long serialVersionUID = 1L;
	private String code;
	private String message;
	 public CommonException() {
	    	super();
	    }
	    public CommonException( String message) {
	    	this.code="1000";//表示除了异常的
	    	this.message=message;//通过一个函数message来只传递消息
	    }
	    public CommonException(String code, String message) {
			this.code = code;
			this.message = message;
		}//通过构造函数来得到
	
	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
	
	

}
